package com.modules.flexnet.business
{
	import com.adobe.cairngorm.business.IServiceLocator;

	public class ServiceProxy 
	{
		private static var __instance:ServiceProxy;
		[Bindable]
		public var service:IServiceLocator;
		
		public function ServiceProxy()
		{
			if(__instance!=null) throw new Error("Error: Singletons can only be instantiated via getInstance() method!");
			ServiceProxy.__instance = this;
		}

		public static function getInstance():ServiceProxy
		{
			if ( __instance == null )
         	{
            	__instance = new ServiceProxy();
         	}
         	return __instance;
		}
	}
}